<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h2>添加新闻</h2>
    <form action="addNewsServlet" method="post">
        添加标题:<input type="text" name="title"/><br/>
        所属板块：<select name="topicid">
                        <option>--请输入板块--</option>
                       <c:forEach items="${boardList}" var="b">
                            <option value="${b.topicId}">${b.topicName}</option>
                       </c:forEach>
                    </select><br/>
        添加内容：<textarea name="context"></textarea><br/>
        <input type="submit" value="添加"/>
    </form>
</body>
</html>
